﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserInfo.aspx.cs" Inherits="eStore.User.UserInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div style="z-index: 1; left: 361px; top: 209px; position: absolute; height: 214px; width: 577px">
    <asp:DetailsView ID="DetailsViewUserInfo" runat="server" AutoGenerateRows="False" 
        DataKeyNames="UserName" DataSourceID="LinqDataSourceUserInfo" Height="50px" 
        Width="589px" CellPadding="4" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
        <EditRowStyle BackColor="#999999" />
        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
        <Fields>
            <asp:BoundField DataField="UserName" HeaderText="UserName" ReadOnly="True" 
                SortExpression="UserName" />
            <asp:BoundField DataField="FullName" HeaderText="FullName" 
                SortExpression="FullName" />
            <asp:BoundField DataField="BirthYear" HeaderText="BirthYear" 
                SortExpression="BirthYear" />
            <asp:BoundField DataField="Gender" HeaderText="Gender" 
                SortExpression="Gender" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
            <asp:BoundField DataField="Province" HeaderText="Province" 
                SortExpression="Province" />
            <asp:BoundField DataField="NationalName" HeaderText="NationalName" 
                SortExpression="NationalName" />
            <asp:BoundField DataField="Address" HeaderText="Address" 
                SortExpression="Address" />
            <asp:CommandField ShowEditButton="True" />
        </Fields>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderTemplate>       
            Thông Tin Người Dùng
        </HeaderTemplate>
        <FooterTemplate>

            User Information

        </FooterTemplate>
        
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    </asp:DetailsView>
    <asp:LinqDataSource ID="LinqDataSourceUserInfo" runat="server" 
        ContextTypeName="eStore.eStoreModelDataContext" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" EntityTypeName="" 
        TableName="eStore_UserInfos" Where="UserName == @UserName">
        <WhereParameters>
            <asp:SessionParameter Name="UserName" SessionField="UserName" Type="String" />
        </WhereParameters>
    </asp:LinqDataSource>
    </div>
</asp:Content>
